import java.util.Scanner;

public class Solution {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while(in.hasNextInt()){
            int k = in.nextInt();
            MyCircularQueue queue = new MyCircularQueue(k);
            System.out.println(queue.enQueue(1));
            System.out.println(queue.deQueue());
            System.out.println(queue.Front());
            System.out.println(queue.Rear());
            System.out.println(queue.isFull());
            System.out.println(queue.isEmpty());
        }
    }
}
